pkgname=plzip
pkgver=1
pkgrel=4
url="http://www.nongnu.org/lzip/plzip.html"
arch=('x86_64' 'i386')
license=('GPL')
makedepends_debian_11=(install-info)
source=("http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-1.5.tar.gz" "http://download.savannah.gnu.org/releases/lzip/${pkgname}/${pkgname}-${pkgver}.${pkgrel}.tar.gz")
md5sums=('3fbdae5c5a04f9c244b82edf412b00db' 'ed1d05ff55f804d1b4b29e30cdfb0a5e')

build() {
	cd $srcdir

	cd lzlib-1.5 || return
	./configure || return
	make || return
	make install || return
	cd ../${pkgname}-${pkgver}.${pkgrel} || return
	./configure || return
	make LDFLAGS="-L/usr/local/lib"
}

package() {
	cd "$srcdir/${pkgname}-${pkgver}.${pkgrel}"
	make DESTDIR=$pkgdir install
}
